package com.atguigu.guli.service.sms.controllers;

import com.atguigu.guli.service.result.R;
import com.atguigu.guli.service.sms.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController

@RequestMapping("/sms/send")
public class SmsController {
    @Autowired
    SmsService smsService;


    @GetMapping("/sendMcg/{mobile}")  //发送短信
    public R sendMcg(@PathVariable String mobile){
        smsService.sendMcg(mobile);
        return R.ok();
    }
}
